package p270jp.pxv.android.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ObservableField;
import p056bp.Duration;
import p270jp.pxv.android.R;
import p314lg.ViewLiveTitleBarBinding;

/* renamed from: jp.pxv.android.view.LiveTitleBarView */
/* loaded from: classes2.dex */
public class LiveTitleBarView extends FrameLayout {

    /* renamed from: a */
    public ViewLiveTitleBarBinding f19555a;

    /* renamed from: b */
    public ObservableField<String> f19556b = new ObservableField<>();

    public LiveTitleBarView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        if (!isInEditMode()) {
            ViewLiveTitleBarBinding x9Var = (ViewLiveTitleBarBinding) DataBindingUtil.m11370c(LayoutInflater.from(getContext()), R.layout.view_live_title_bar, this, true);
            this.f19555a = x9Var;
            x9Var.mo3769z(this.f19556b);
        }
    }

    public void setAudienceCount(long j) {
        this.f19555a.f22458q.setAudienceCount(j);
    }

    public void setChatCount(long j) {
        this.f19555a.f22458q.setChatCount(j);
    }

    public void setElapsedDuration(Duration eVar) {
        this.f19555a.f22458q.setElapsedDuration(eVar);
    }

    public void setHeartCount(long j) {
        this.f19555a.f22458q.setHeartCount(j);
    }

    /* JADX WARN: Multi-variable type inference failed */
    public void setTitle(String str) {
        ObservableField<String> iVar = this.f19556b;
        if (str != iVar.f2685b) {
            iVar.f2685b = str;
            iVar.m11381c();
        }
    }

    public void setTotalAudienceCount(long j) {
        this.f19555a.f22458q.setTotalAudienceCount(j);
    }
}
